package org.acra;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import java.io.IOException;

class f
  implements View.OnClickListener
{
  f(CrashReportDialog paramCrashReportDialog)
  {
  }

  public void onClick(View paramView)
  {
    String str1;
    if (CrashReportDialog.a(this.a) != null)
      str1 = CrashReportDialog.a(this.a).getText().toString();
    while (true)
    {
      String str2;
      l locall;
      if ((CrashReportDialog.b(this.a) != null) && (CrashReportDialog.c(this.a) != null))
      {
        str2 = CrashReportDialog.c(this.a).getText().toString();
        SharedPreferences.Editor localEditor = CrashReportDialog.b(this.a).edit();
        localEditor.putString("acra.user.email", str2);
        localEditor.commit();
        locall = new l(this.a.getApplicationContext());
      }
      try
      {
        Log.d(ACRA.LOG_TAG, "Add user comment to " + this.a.a);
        org.acra.b.c localc = locall.a(this.a.a);
        localc.put(ReportField.USER_COMMENT, str1);
        localc.put(ReportField.USER_EMAIL, str2);
        locall.a(localc, this.a.a);
        Log.v(ACRA.LOG_TAG, "About to start SenderWorker from CrashReportDialog");
        ACRA.getErrorReporter().a(false, true);
        int i = ACRA.getConfig().u();
        if (i != 0)
          org.acra.d.l.a(this.a.getApplicationContext(), i, 1);
        this.a.finish();
        return;
        str1 = "";
        continue;
        str2 = "";
      }
      catch (IOException localIOException)
      {
        while (true)
          Log.w(ACRA.LOG_TAG, "User comment not added: ", localIOException);
      }
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     org.acra.f
 * JD-Core Version:    0.6.2
 */